package com.funmi.lizip.mapper;

import com.funmi.lizip.entity.DeviceData;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zzy
 * @since 2022-11-02
 */
public interface DataMapper extends BaseMapper<DeviceData> {


    @Select("select device_id from device_data where id ={id} ")
    int getDeviceId(int id);


    @Select("select image from image where imei =#{imei}")
    List<String> getPhoto(Long imei);
}
